/*
 * @Description: 配置管理
 * @Author: hanbenpao(admin@qianghan.xyz)
 * @Date: 2021-09-26 18:22:21
 * @LastEditTime: 2021-09-30 11:27:56
 */
import axios from '@/utils/axios'

/**
 * @description: 列表
 */
export const configListApi = data =>
  axios.request({
    url: '/configList',
    method: 'get',
    params: data
  })

/**
 * @description: 添加
 */
export const configAddApi = data =>
  axios.request({
    url: '/addConfig',
    method: 'post',
    data
  })

/**
 * @description: 修改
 */
export const configUpdateApi = data =>
  axios.request({
    url: '/updateConfig',
    method: 'put',
    data
  })

/**
 * @description: 删除
 */
export const messageDelApi = data =>
  axios.request({
    url: '/delMessage',
    method: 'delete',
    params: data
  })
